package com.tjsinfo.tjsoa.system.vo;

import java.util.Calendar;
import java.util.Hashtable;
import java.util.List;

public class User {
	private int user_id;
	private String UUID;
	private String permission;
	private String username;
	private String department;
	private int type;
	private static Hashtable<String, Calendar> nowUser = null;   
	private static Hashtable<String, String> sendMessage = null;   
	private static Hashtable<String, String> nowMsnUser = null;   
    
	public static void clearTable(List<String> list ){
		for (String userid : list) {
			sendMessage.remove(userid);
		}
	}
	public static synchronized  Hashtable<String, Calendar> getNowUser() {
		if (nowUser==null) {
			nowUser = new Hashtable<String, Calendar>();
		}
		return nowUser;
	}
	public static synchronized  Hashtable<String, String> getSendMessage() {
		if (sendMessage==null) {
			sendMessage = new Hashtable<String, String>();
		}
		return sendMessage;
	}
	public static synchronized  Hashtable<String, String> getNowMsnUser() {
		if (nowMsnUser==null) {
			nowMsnUser = new Hashtable<String, String>();
		}
		return nowMsnUser;
	}
	public int getUser_id() {
		return user_id;
	}
	public void setUser_id(int user_id) {
		this.user_id = user_id;
	}
	public String getPermission() {
		return permission;
	}
	public void setPermission(String permission) {
		this.permission = permission;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public String getUUID() {
		return UUID;
	}
	public void setUUID(String uuid) {
		UUID = uuid;
	}
	public String getDepartment() {
		return department;
	}
	public void setDepartment(String department) {
		this.department = department;
	}
}
